function flyToPage(task) {
	document.forms[0].task.value = task;
	document.forms[0].submit();
}

function loadUpdateButton(id){	
	var saveButtonPlace = document.getElementById("saveButton" + id);
	var updateButtonPlace = document.getElementById("editButton" + id);
	
	saveButtonPlace.setAttribute("style", "display:'';");
	updateButtonPlace.setAttribute("style", "display:none;");		
}

function cancelUpdateButton(id){
	var saveButtonPlace = document.getElementById("saveButton" + id);
	var updateButtonPlace = document.getElementById("editButton" + id);
	
	saveButtonPlace.setAttribute("style", "display:none;");
	updateButtonPlace.setAttribute("style", "display:'';");
}

function hideInsertForm(){
	document.getElementById("insertRow").style.display="none";
	document.getElementById("insertButton").style.display="";
}

function showInsertForm(){
	document.getElementById("insertRow").style.display="";
	document.getElementById("insertButton").style.display="none";
}